package com.xxxx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.page.RespPageBean;
import com.xxxx.server.pojo.Employee;
import com.xxxx.server.pojo.EmployeeAdd;
import com.xxxx.server.pojo.EmployeeImport;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2020-08-17
 */
public interface IEmployeeService extends IService<Employee> {

    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, Date[] beginDateScope);


    Integer updateEmployeeById(Employee employee);


    //导出所有数据
    List<Employee> findAllEmployee();


    Integer removeEmployeeById(Integer id);



    //添加一条员工信息
     Integer saveEmployee(EmployeeAdd employeeAdd);

    //按照员工的 id对员工发送邮件
    Employee getEmployeeById(Integer empId);


    //最大工号  完成添加时的自增
    Integer maxWorkID();

    //发送邮件
    public void sendHtmlMail(String to, String subject, String content);

    // 读数据
    void readExcel(List<EmployeeImport> list);

    // 存数据
    void save(List<EmployeeImport> list);
}
